package com.hyl.service;

import com.hyl.dao.PersonDao;
import com.hyl.dao.PersonDaoImpl;
import com.hyl.entity.Person;

import java.util.List;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2022/12/26 10:33
 **/
public class PersonServiceImpl implements PersonService {

	PersonDao personDao = new PersonDaoImpl();

	@Override
	public List<Person> findAll() {
		return personDao.findAll();
	}

	@Override
	public int add(Person person) {
		return personDao.add(person);
	}

	@Override
	public int del(Integer id) {
		return personDao.del(id);
	}

	@Override
	public int checkName(String name) {
		return personDao.checkName(name);
	}
}
